<?php if(!defined("PATH_HD"))exit;?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="http://localhost/company1/sccms/admin/tpl/source/css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
	<div id="htbody">
    	<span class="httitle">商品类别浏览</span>
		<div class="newsb">
			<a href="http://localhost/company1/index.php/admin/category/addshow" class="cz">添加顶级类别</a>
		<table  width="700px" border='1'>
			<tr>
				<td>类别名称</td><td>操作</td></tr>
			<?php if(!empty($category)){$listCount = count($category);$list_id1=0;?><?php foreach($category as $key=>$c){?><?php $list_id1+=1;?>
			<tr>
				<td width="40%" >
					<input type="hidden" name="cid" value="<?php echo $c['cid'];?>">
					<a href="#" id="title"><?php echo $c['html'];?><?php echo $c['cname'];?></a>
				</td>
				<td width="25%">
					<a href="http://localhost/company1/index.php/admin/category/addshow/cid/<?php echo $c['cid'];?>" class="cz">添加子类别</a>&nbsp;|&nbsp;
					<a href="http://localhost/company1/index.php/admin/category/updateshow/cid/<?php echo $c['cid'];?>" class="cz">修改</a>&nbsp;|&nbsp;
					<a href="http://localhost/company1/index.php/admin/category/del/cid/<?php echo $c['cid'];?>" class="cz">删除</a>
				</td>
			</tr>
			<?php }?><?php }?>
		</table>
        
		</div>
    </div>
</body>
</html>
